import request from "@/router/axios";

// 获取线路列表
export const getlineList = (params) => {
  return request({
    url: "/api/admin/line/pagination",
    method: "get",
    params: params
  });
};

// 获取线路列表的详情
export const getlineDetail = (id) => {
  return request({
    url: "/api/admin/line/detail/" + id,
    method: "get"
  });
};

// 获取聊天记录
export const getChatList = (params) => {
  return request({
    url: "/api/admin/chat/pagination",
    method: "get",
    params: params
  });
};
